package com.hps.ssh.service.impl;

import com.hps.ssh.dao.IClassDao;
import com.hps.ssh.entity.Clazz;
import com.hps.ssh.service.IClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ClassServiceImpl implements IClassService {

    @Autowired
    private IClassDao classDao;

    @Override
    public void addClass(Clazz clazz) {
        classDao.addClass(clazz);
    }

    @Override
    public Clazz findById(Integer id) {
        return classDao.findById(id);
    }
}
